<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    
 include("../include/connection.php"); 
 
  if (isset($_POST['lectureid'])) {

                $lectureid = $_POST['lectureid'];
                $delete = "delete from LECTURE  WHERE LECTURE_ID= '$lectureid'";

                if (!mysqli_query($condb, $delete)) {
                    die('Error: ' . mysqli_error($condb));
                } else {
                    echo "sucefully deleted lecture";
                }
            }
}
 ?>

